<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            margin: 0;
        }
        a{
            text-decoration: none;
        }
        .container{
            width: 1226px;
            margin: 0 auto ;
        }
        .header{
            background-color: #333;
            min-width: 1226px;
        }
        .header .menu {
            float: left;
            /*height: 40px;*/
            line-height: 40px;

        }
        .header .account {
            float: right;
            /*height: 40px;*/
            line-height: 40px;

        }
        .header a{
            color: #b0b0b0;
            line-height: 40px;
            display: inline-block;
            font-size: 12px;
            margin-right: 10px;
        }
        .header a:hover{
            color: #fff;
        }

        .sub-header .ht{
            height: 100px;
        }
        .sub-header .logo{
            float: left;
            width: 234px;
            /*border: 1px solid red;*/
        }
        .sub-header .logo a{
            margin-top: 22px;
            display: inline-block
        }
        .sub-header .logo a img{
            width: 56px;
            height: 56px
        }
        .sub-header .menu-list{
            float: left;
        }
        .sub-header .menu-list a{
            color: black;
            margin-top:42px;
            display: inline-block;
            height: 88px;
            font-size: 16px;
            padding: 0 5px;
        }
        .sub-header .menu-list a:hover{
            color: #ff6700;
        }
        .sub-header .search{
            float: right;
        }
        .sub-header .search #search{
            width: 245px;
            height: 50px;
            margin: 22px;
            text-align: center;
            border: 1px solid grey;
        }
        .sub-header .search
    </style>
</head>
<body>
    <div class="header">
    <div class="container">
        <div class="menu">
            <a rel="nofollow" href="https://www.mi.com/">小米官网</a>
            <a rel="nofollow" href="https://www.mi.com/">小米商城</a>
            <a href="">MIUI</a>
            <a href="">loT</a>
            <a href="">云服务</a>
            <a href="">天星数科</a>
            <a href="">有品</a>
            <a href="">小爱开放平台</a>
            <a href="">企业团购</a>
            <a href="">资质证照</a>
            <a href="">协议规则</a>
            <a href="">下载app</a>
            <a href="">智能生活</a>
            <a href="">Select Location</a>
        </div>
        <div class="account">
             <a href="">登录</a>
             <a href="">注册</a>
             <a href="">消息通知</a>
             <a href="">购物车</a>
        </div><div style="clear: both"></div>

    </div>
</div>
    <div class="sub-header">
    <div class="container">
        <div class=" ht logo">
            <!--a标签是行内标签，默认设置高和边距无效，需要改成块级和 行内+块级才有效-->
            <a href="https://www.mi.com/">
                <img src="../static/mi.png">
            </a>
        </div>
        <div class=" ht menu-list">
            <a href="https://www.mi.com/">Xiaomi手机</a>
            <a href="https://www.mi.com/">Redmi手机</a>
            <a href="">电视</a>
            <a href="">笔记本</a>
            <a href="">平板</a>
            <a href="">家电</a>
            <a href="">路由器</a>
            <a href="">服务中心</a>
            <a href="">社区</a>
        </div>
        <div class="ht search">
            <input id="search">
            <input type="submit" style="width:52px;height: 50px">
        </div>
        <div class="clear:both;"></div>


    </div>
</div>
</body>
</html>